x86/vmx: Don't clobber %dr6 while debugging state is lazy
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Jul 2018 09:26:53 +0000 (11:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:26:53 +0000 (11:26 +0200)
commit037fe82cf5fadf0f74c3da70560ee7592a8f2083
tree017c9abb0990ac889cfd46724f1dbd33fdfad2ba
parent353edf12c865d2a1e24173aac841452b90614915
x86/vmx: Don't clobber %dr6 while debugging state is lazy

c/s 4f36452b63 introduced a write to %dr6 in the #DB intercept case, but the
guests debug registers may be lazy at this point, at which point the guests
later attempt to read %dr6 will discard this value and use the older stale
value.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
master commit: 3cdac2805692c7accde2f405d81cc0be799aee48
master date: 2018-07-19 14:06:48 +0100
xen/arch/x86/hvm/vmx/vmx.c